var beginningDelay = null;
function GetQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);  //获取url中"?"符后的字符串并正则匹配
    var context = "";
    if (r != null)
             context = r[2];                                                                     
    reg = null;
    r = null;
    return context == null || context == "" || context == "undefined" ? "" : context;
}
var turnfs
function jump(zname) {
    turnfs = setInterval(function(){
        scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
        scrollTop = scrollTop + 20; 
        document.documentElement.scrollTop = document.body.scrollTop = scrollTop;
        if(scrollTop>=($(zname).offset().top)){
            clearInterval(turnfs)
        }
    }, 10);
}
function accti(uname) {
    var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
    if(scrollTop>=(($(uname).offset().top) - $(window).height() + 200) && scrollTop<=(($(uname).offset().top) + $(uname).height() - 100)){
        $(uname).addClass("active")
    }
}
$(document).ready(function(){
    scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
    
})
$(window).scroll(function(){
    scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
    
})